package org.mipt.infsec.steganography.action;

import org.mipt.infsec.steganography.gui.GuiFrame;
import org.mipt.infsec.steganography.impl.petzib.EncryptorImpl;

import java.awt.event.ActionEvent;
import java.io.IOException;

public class ImageEncryptorAction extends AbstractProgramMenuAction {
    private EncryptorImpl encryptor;

    public ImageEncryptorAction(GuiFrame owner) {
		super(owner, "Encrypt Method...");
	}

	@Override
	public void actionPerformed(ActionEvent evt) {
        try {
            owner.encryptImage();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    }

